﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace ZYO
{
    // NOTE: If you change the class name "Service1" here, you must also update the reference to "Service1" in App.config.
    public class Service1 : IService1
    {
        public string Test()
        {
            ZYO.基本概念.Class奇门遁甲 Q = new ZYO.基本概念.Class奇门遁甲(DateTime.Now);

            ZYO.class甲子 j = new class甲子(1);
            ZYO.class甲子 jj = new class甲子(0);
            ZYO.class甲子 jjj = new class甲子(60);

            class节气 jq = new class节气(7,2009);
            class节气 jq0 = new class节气("大雪", 1992);
            class节气 jq1 = new class节气("芒种", 1993);
            class节气 jq2 = new class节气("大雪", 1993);
            class节气 jq3 = new class节气("大雪", 1996);
            class节气 jq4 = new class节气("大雪", 1999);
            class节气 jq5 = new class节气("大雪", 2002);
            ZYO.ZYDateTime zdt = new ZYDateTime(DateTime.Now);
            ZYDateTime d = new ZYDateTime(1967, 7, 12, 2);

            class八卦 g8 = new class八卦(2);
            class六十四卦 g64 = new class六十四卦(33);
            Gua64TiYong ty = new Gua64TiYong(33);

            class六爻起卦 r = new class六爻起卦(ZYOEnum.e起卦方法.摇卦, DateTime.Now, "321012", "求财");
            class六爻起卦 a = new class六爻起卦(ZYOEnum.e起卦方法.数字, DateTime.Now, "3;77", "求财");
            class六爻起卦 s = new class六爻起卦(ZYOEnum.e起卦方法.时间, DateTime.Now, "321012", "求财");
            class六爻起卦 df = new class六爻起卦(ZYOEnum.e起卦方法.测字, DateTime.Now, "海通证券", "求财");

            //class爻 y = new class爻(2, 33);

            return String.Empty;
        }

        public CompositeType GetDataUsingDataContract(CompositeType composite)
        {
            if (composite.BoolValue)
            {
                composite.StringValue += "Suffix";
            }
            return composite;
        }
    }
}
